import XSplit from './components/split';

const VueXSplit = {
    XSplit,
    XSplitArea: XSplit.XSplitArea
}
const install = function (Vue, opts = {}) {
    Object.keys(VueXSplit).forEach((key) => {
        Vue.component(key, VueXSplit[key]);
    });
};

// auto install
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default Object.assign(VueXSplit, {install})
